
<template>
  <div>
    <el-form ref="form" :model="form" label-width="80px">
      <el-form-item label="城市Id" v-if="form.cityId">
        <el-input :value="form.cityId" disabled></el-input>
      </el-form-item>
      <el-form-item label="城市名称">
        <el-input v-model="form.name"></el-input>
      </el-form-item>
      <el-form-item label="城市拼音">
        <el-input v-model="form.pinyin"></el-input>
      </el-form-item>
      <el-form-item label="热门城市">
        <el-switch v-model="form.isHot" :active-text="form.isHot?'是':'否'"></el-switch>
      </el-form-item>
       <slot></slot>
    </el-form>
  </div>
</template>


<script>
export default {
  props:["form"]
};
</script>